<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
var Flower = function () {

};
var xiaoming = {
    sendFlower:function (target) {
        var flower = new Flower();
        target.receiveFlower(flower)
        //receiveFlower receiveFlower
    }
}
var B = {
    receiveFlower:function (flower) {
        A.receiveFlower(flower)
    }
}
var A = {
    receiveFlower:function (flower) {
        console.log('收到花'+flower);
    }
}
xiaoming.sendFlower(B)
</script>
</body>
</html>